package cn.shutdown.demo;

import java.util.Timer;
import java.util.TimerTask;

/**
 * @author jiangwujie
 * @date 2021/5/14
 */
public class TimerTaskTest {

    public static void main(String[] args) {
        new Timer().schedule(new MyTimerTask(), 5000,5000);
    }
}

class MyTimerTask extends TimerTask {

    @Override
    public void run() {
        System.out.println("fuck you");
    }
}